import { ApiProperty } from '@nestjs/swagger';
import { UserStatus } from '../../../types/enums';

export class UserResponseDto {
  @ApiProperty({
    description: '用户ID',
    example: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
  })
  id: string;

  @ApiProperty({
    description: '用户名',
    example: 'johndoe',
  })
  username: string;

  @ApiProperty({
    description: '用户邮箱',
    example: 'john.doe@example.com',
  })
  email: string;

  @ApiProperty({
    description: '用户状态',
    enum: UserStatus,
    example: UserStatus.ACTIVE,
  })
  status: UserStatus;

  @ApiProperty({
    description: '用户姓名',
    example: '张三',
  })
  name: string;

  @ApiProperty({
    description: '用户头像URL',
    example: 'https://example.com/avatar.jpg',
    required: false,
    nullable: true,
  })
  avatar: string | null;

  @ApiProperty({
    description: '创建时间',
    example: '2023-01-01T00:00:00.000Z',
  })
  createdAt: Date;

  @ApiProperty({
    description: '更新时间',
    example: '2023-01-01T00:00:00.000Z',
  })
  updatedAt: Date;
} 